<template>
  <div class="header">
    <div class="header-left"><div class="icon iconfont icon-fanhui back-icon"></div></div>
    <div class="header-input"><input class="search-input" type="text" maxlength="14" placeholder="请输入游戏/礼包/关键词"><i class="icon iconfont icon-sousuo search-icon"></i></div>
    <div class="header-right"><div class="icon iconfont icon-saoma back-icon"></div></div>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style lang="stylus" scoped>
  .header
    display: flex
    height: .86rem
    line-height: .86rem
    background: #D0021B
    color: #fff
    .header-left
      width: .64rem
      height: .86rem
      float: left
      .back-icon
        text-align: center
        font-size: .4rem
    .header-input
      display: flex
      flex: 1
      height: .64rem
      line-height: .64rem
      margin-top: .12rem
      background: #fff
      border-radius: .1rem
      color: #fff
      .search-input
        flex: 1
        padding-left: .2rem
        font-size: .28rem
        border-top-left-radius: .1rem
        border-bottom-left-radius: .1rem
        color: #333
      .search-icon
        float: right
        display: inline-block
        width: .84rem
        height: .64rem
        font-size: .4rem
        text-align center
        color: #ccc
    .header-right
      width: .74rem
      height: .86rem
      float: right
      .back-icon
        text-align: center
        font-size: .4rem
</style>
